#include<iostream>
// #include<algorithm>
using namespace std;
typedef long long ll;
ll t, n;
ll h[105];
// ll pre[105];
ll formula[105];
void solve() {
  cin>>n;
  bool yes = true;
  for(int i=0; i<n; ++i) cin>>h[i];
  for(int i=1; i<n; ++i) h[i] += h[i-1];
  for(int i=0; i<n; ++i) {
    if(h[i]<formula[i]) {
      yes = false;break;
    }
  }
  if(yes)cout<<"YES\n";
  else cout<<"NO\n";
}
void init() {
  for(int i=1; i<=100; ++i) {
    formula[i] = (i*(i+1))/2;
  }
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);cout.tie(0);
  cin>>t;
  init();
  while(t--)solve();
  return 0;
}
